package com.atguigu.gmall.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author BrookPeng
 * @Date 2020/12/2 16:36
 * @Version 1.0
 *
 * 登陆
 */
@Controller
public class LoginController {

    // 点击登陆 去登陆
    @GetMapping("/login.html")
    public String login(String originUrl, Model model) {

        model.addAttribute("originUrl", originUrl);
        return "login";
    }
}
